liwe.form.instance.prototype.check_box = function ( vars )
{
	this._start_field ( vars );

	var name = this.name + '@' + vars.get ( 'name' );

	var chk = new WWL.checkbox ( name, vars.get ( 'value' ), vars.get ( 'checked' ) );
	chk.cbacks [ 'click' ] = function ( checked )
	{
		$( 'checkbox-' + name ).disabled = checked;
	};
	
	var html = '<input id="checkbox-' + name + '" type="hidden" name="' + vars.get ( 'name' ) + '" value="' + vars.get ( 'value' ) + '" ' + ( vars.get ( 'checked' ) ? '' : 'disabled' ) + ' />';

	this.html += chk.to_string ( html );

	this._widgets [ vars [ 'name' ] ] = chk;

	this._newline ( vars );
};
